package cc.mrbird.febs.accounting.entity;

import java.util.Date;
import java.math.BigDecimal;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 *  Entity
 *
 * @author baoyinlei
 * @date 2021-09-28 23:27:01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("bk_detail_cost")
@Builder
@Accessors(chain = true)
public class DetailCost {

    /**
     * 
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    @TableField("detail_subject_code")
    private String detailSubjectCode;

    /**
     * 
     */
    @TableField("type")
    private Integer type;

    /**
     * 
     */
    @TableField("cost")
    private BigDecimal cost;
    /**
     * 
     */
    @TableField("is_deleted")
    private Integer isDeleted;

    /**
     * 
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField("modify_time")
    private Date modifyTime;

    /**
     * 
     */
    @TableField("create_by")
    private String createBy;

    /**
     * 
     */
    @TableField("modify_by")
    private String modifyBy;

    @TableField("company_id")
    private Long companyId;

    @TableField("project_id")
    private Long projectId;

    @TableField(exist = false)
    private Long mainSubjectId;

    @TableField("`year_month`")
    private String yearMonth;
    @TableField("remark")
    private String remark;

    @TableField(exist = false)
    private String standardSubCode;

    @TableField("estimate")
    private Integer estimate;

    @TableField(exist = false)
    private String name;

    @TableField("input_tax_adjustment")
    private BigDecimal inputTaxAdjustment;

}
